import request from '@/utils/request'
// 列表
export function getList(data, page) {
    return request({
        url: '/Muma_giving_package/package_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 获取分页
export function getPage(data) {
    return request({
        url: '/Muma_giving_package/package_page',
        method: 'post',
        data: data
    })
}
// 获取品牌
export function getBrand(data) {
    return request({
        url: '/General/get_brand_second',
        method: 'post',
        data: data
    })
}
// 获取编辑信息
export function getActivityInfo(data) {
    return request({
        url: '/Muma_giving_package/look_package',
        method: 'post',
        data: data
    })
}
// 新增编辑保存
export function save(data, url) {
    return request({
        url: url,
        method: 'post',
        data: data
    })
}
// 删除套餐
export function delActivity(data) {
    return request({
        url: '/Muma_giving_package/delete_package',
        method: 'post',
        data: data
    })
}
// 配置门店列表
export function deployStore(data) {
    return request({
        url: '/Muma_giving_package/store_package',
        method: 'post',
        data: data
    })
}
// // 门店列表添加 2019/1/24前端自己改穿梭框
// export function getStore(data) {
//     return request({
//         url: '/Muma_giving_package/add_store_list',
//         method: 'post',
//         data: data
//     })
// }
// 获取门店列表
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
// 添加门店保存
export function saveDeployStore(data) {
    return request({
        url: '/Muma_giving_package/add_store',
        method: 'post',
        data: data
    })
}
// 删除门店
export function delStore(data) {
    return request({
        url: '/Muma_giving_package/delete_store',
        method: 'post',
        data: data
    })
}
//商品口碑详情
export function product(data) {
    return request({
        url: '/Operations_vouchers_config/product_info',
        method: 'post',
        data: data
    })
}